//
//  PersonInfoCell.swift
//  HuaYun
//
//  Created by enghou on 2018/7/26.
//  Copyright © 2018年 xyxorigation. All rights reserved.
//

import UIKit

class PersonInfoCell: UITableViewCell {

    @IBOutlet weak var typeLabel: UILabel!
    
    @IBOutlet weak var occupyLabel: UILabel!
    
    @IBOutlet weak var nameLabel: UILabel!
    
    @IBOutlet weak var numberLabel: UILabel!
    
    var model: JSON?{
        set{
            self.numberLabel.text = newValue?.contents?["userWorkNum"]?.rawString() ?? "--"
            self.occupyLabel.text = newValue?.contents?["userPost"]?.rawString() ?? "--"
            self.nameLabel.text = newValue?.contents?["userName"]?.rawString() ?? "--"
            self.typeLabel.text = newValue?.contents?["userWorkType"]?.rawString() ?? "--"
        }
        get{
            return nil
        }
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
